/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package us.oh.k12.wkw.robot.command;

/**
 *
 * @author Team4145
 */
public class DriveWithNetworkTableCmd extends CommandBase {

    public DriveWithNetworkTableCmd() {
        super("DriveWithNetworkTableCmd");
        this.requires(this.getDriveSystem());
        this.setInterruptible(true);
    }

    protected void initialize() {

        this.setInterruptible(true);

    }

    protected void execute() {

        try {

            this.getDriveSystem().driveWithNetworkTable();

        } catch (Exception anEx) {
            this.error("execute()", anEx);
        }
    }

    // drive with joystick never ends
    protected boolean isFinished() {
        return false;
    }

    public boolean isInterruptible() {
        return true;
    }
}
